package com.naiterui.ehp.bs.weixin.security.bean;

import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class JwtInfo implements Serializable {

    private static final long serialVersionUID = 1250166508152483573L;

    /**
     * header 中名称
     */
    private final String headerName;

    /**
     * 用户token
     */
    private final String token;

    public JwtInfo(String headerName, String token) {
        this.headerName = headerName;
        this.token = token;
    }

    public String getHeaderName() {
        return headerName;
    }

    public String getToken() {
        return this.token;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
